package models

import "project/dao"

type Login struct {
	Username string `gorm:"column:username"`
	Password string `gorm:"column:passowrd"`
}

func GetLogin(Username string) (error, Login) {
	var logindata Login
	err := dao.Db.Table("users").Where("username like ?", Username).First(&logindata).Error
	return err, logindata
}
